<%@ Page Title="Phone Interview Control Panel" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DomainModel.Entities.Application>>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Phone Interview Control Panel
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

<% using (Html.BeginForm("Index", "PhoneInterview"))
    { %>
        <h2>Applicants Awaiting Interview</h2>
        
        <table class="staffingexpert" style="width: 650px" cellspacing="0" id="ApplicantsTable">
            <thead>
            <tr>
                <th>Applicant</th>
                <th>Actions</th>
            </tr>
            </thead>
            <tbody>
            <% foreach (var item in Model)
               { %>
                <tr>
                    <td style="width: 600px; white-space: pre-wrap;">
                        <%= Html.Encode(item.Last_Name) %>, <%= Html.Encode(item.First_Name) %>
                    </td>
                    <td style="width: 120px">
                        <%= Html.ActionLink("Interview", "Interview", new { item.ApplicationID }) %>
                    </td>
                </tr>
             <% } %>
            </tbody>
        </table>
        
    <script type="text/javascript">
        var t = new ScrollableTable(document.getElementById('ApplicantsTable'), 440);
    </script>
   
 <% } %>

</asp:Content>
